Skip to content

Conversation

@trinistr
Copy link
Contributor

@trinistr trinistr commented Nov 7, 2025

Follow-up to my report in TruffleRuby truffleruby/truffleruby#3945. Comparable#clamp has been accepting endless ranges (of all varieties) since 2.7.

Note how only beginless ranges cause errors with exclusive end.

@andrykonchin
Copy link
Member

Looks good!. Could you please squash commits?

@trinistr trinistr force-pushed the clamp-with-endless-ranges branch from b062245 to 6430a32 Compare November 7, 2025 14:28
@trinistr
Copy link
Contributor Author

trinistr commented Nov 7, 2025

Done

@andrykonchin
Copy link
Member

Thank you!

@andrykonchin andrykonchin merged commit 7ca0217 into ruby:master Nov 7, 2025
12 checks passed
@trinistr trinistr deleted the clamp-with-endless-ranges branch November 7, 2025 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants